import service from '../utils/axios'

export function getInfo() {
  return service({
    url: '/admin/system/index/getUserInfo',
    method: 'get',

  });
}




export function getPageUsersApi(data: any) {
  return service({
    url: '/admin/system/sysUser/findByPage',
    method: 'post',
    data
  });
}


export function deleteUser(id: number) {
  return service({
    url: `/admin/system/sysUser/deleteById/${id}`,
    method: 'delete',
  });
}

export function addUser(data: any) {
  return service({
    url: '/admin/system/sysUser/saveSysUser',
    method: 'post',
    data
  });
}

export function updateUser(data: any) {
  return service({
    url: '/admin/system/sysUser/updateSysUser',
    method: 'put',
    data
  });
}


export function doAssign(data: any) {
  return service({
    url: '/admin/system/sysUser/doAssign',
    method: 'put',
    data
  });
}
